package JMU2.ti501;

import java.math.BigDecimal;
import java.util.Scanner;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            BigDecimal num1=scanner.nextBigDecimal();
            BigDecimal num2=scanner.nextBigDecimal();
            BigDecimal sum=num1.add(num2);
            BigDecimal product=num1.multiply(num2);
            System.out.println(sum.toString());
            System.out.println(product.toString());
        }
       scanner.close();
    }
}
